Skip to main content

UnitAction Class

Description:

  A record that defines and stores the behavior and properties of the "UnitAction" class. It is a singleton object that manages all "UnitAction" objects.

add

Type: Function.

Description:

  Adds a new "UnitAction" to the "UnitActionClass" with the specified name and parameters.

Signature:

add: function(
self: UnitActionClass,
name: string,
param: UnitActionParam
)

Parameters:

ParameterTypeDescription
namestringThe name of the new "UnitAction".
paramUnitActionParamThe parameters for the new "UnitAction".

clear

Type: Function.

Description:

  Removes all "UnitAction" objects from the "UnitActionClass".

Signature:

clear: function(self: UnitActionClass)